class MyClass(object):
    def __init__(self):
        print("-----init-----方法")

    def __new__(cls, *args, **kwargs):
        print("----new-----方法")
        return super().__new__(cls)


if __name__ == '__main__':
    MyClass()